add cwd pref for junit + use project dir if not set