Issue #9: Added target directory functionality

Fixed issue #9: Target directory can now be set at cmd.line or at
runtime.