Fix for when spaces exists in repo path

Checking if local repo is stale fails when the repo path contains spaces, which it did i my case.