Modify paths to scratch space