Fixes path problems when commiting from sub dir