Fixing a bug with the npm options
Bugfix to handle optional npm params