Fixing path bug when using git