Fixed recession for Node.js 0.10.X

Due to changed behavior of path.join and a wrong assumption of sdkPath being not undefined, trying to path.join a non-string will result in breaking the whole runtime. (i.e. CLI)
Merge pull request #43 from KenanSulayman/patch-1

Fixed regression for Node.js 0.10.X