removing first path character check

since we don't care if the file.path starts with '/' or '.' or not removing that check.