Fixed removal of temporary work directory