Use opendir+chdir to change back to the original directory.
Use opendir+chdir to change back to the original directory.

This removes the direct dependency on Cwd module.

josl/App-perlbrew,ptolemarch/App-perlbrew,Asuza/App-perlbrew,ptolemarch/App-perlbrew,ptolemarch/App-perlbrew,calid/App-perlbrew,rafl/App-perlbrew,Asuza/App-perlbrew,rafl/App-perlbrew,Asuza/App-perlbrew,rafl/App-perlbrew,josl/App-perlbrew,josl/App-perlbrew,calid/App-perlbrew