Add destination directory as an option

Adds a new option (-d) to use a totally separate destination directory.

Unfortunately the current handling of directories is a little strange, in that you have to add a "/" at the end of the directory to use this instead of the parent directory. It works anyway ;-)