Get cwd() with Cwd.pm so we can restore cwd()