Implemented resetWorkspace() to setup the working directories