changed detect_presence() to use path.exists() for git to accomodate gitfile mechanism