better handling of --javascript.package-path