Handle git checkout directory path creation