Fixed the main issue where a process without a cwd specified failed to start
Added code to replace the home dir character ~ into a full path
Changed console.log into console.error where it concerns an error
Added explicit return keywords
Improved errorhandeling by calling the callback with an error instead of throwing an error
Added a console.error
Incremented the module's patch verison
Removed an unnecessary else block