script to clear work directory