fixed file lock exception in scaffold task on Windows