Only do the permissions workaround when actually pulling from git
Merge pull request #7 from EDITD/pull-from-git

Only do the permissions workaround when actually pulling from git