adapt repo detect funcs to look like the vcs one
proper escaping of filepaths