fixed clear directory script