fix file location when source repository is bare