ENYO-2677:script under bin directory can find the node module properly

Enyo-DCO-1.1-Signed-off-by: Junil Kim <logyourself@gmail.com>
Merge pull request #403 from enyojs/ENYO-2677

ENYO-2677: To improve CLI .cmd|.sh under bin directory to be working properly

Reviewed-By: Ben Combee (ben.combee@lge.com)
ENYO-2512: code cleaning
Merge remote-tracking branch 'origin/master' into ENYO-2512