Remove usage of ‘user.dir’ as default working dir and add support for null as working dir.