Fix handling of files in the project root path

mkdir failed on an empty string.