Chomp trailing slash
Shortcut to emit error event
Get version from package.json