Use forking to remove previous work directory.