Corrected path to scratch directory