@staticmethod
def rel_path(name, available_tools):
    """
        Extracts relative path to a tool (from the main cloned directory) out
        of available_tools based on the name it is given
        """
    if name == '@' or name == '.' or name == '/':
        name = ''
    multi_tool = '@' in name
    for tool in available_tools:
        t_name = tool[0].lower()
        if multi_tool:
            if name.split('@')[-1] == t_name.split('@')[-1]:
                return t_name, t_name
        elif name == t_name.split('/')[-1]:
            return t_name, tool[0]
        elif name == '' and t_name.split('@')[-1] == 'unspecified':
            return '', ''
    return None, None
