fix --local when called from outside of repo
fix #8