Fix conditional version check for NPM_VERSION

This fixes #417 
also i had to set the prefix to mockup's directory.