nodePackages.buildNodePackage: do not repackage source if original source was directory