Cater for customizing of scratch dir.