I add newPath since that block of code uses it and I assumed it shouldn't try to make a gitkeep at the root directory if it's and empty string or undefined.