+ option "--dir" to change application directory

This option will change the initial working directory of
the application, which is useful for e.g. some java apps