Projects Directory : Correct slow writing to disk - correct some errors in script