Don't assume p4 if .git is a file instead of directory, as when project is a submodule.
Merge pull request #25 from mgm7734/git-submodule-fix

P4 scm is assumed if .git is not a directory