adding dir command options

I have added 'dir [-d]' command line options for specifying the path for the new application.

I think it would be a nice to have feature :)