Restore current directory

The current directory should be restored once the process has completed.
This is because it should be possible to repeat the process with another
path, and since all paths are specified relative to the initial
directory the current directory has to be restored.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>