Made the module return the cwd for later reuse