fixed a bug where the -d switch was used for two options: working directory is now -D