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)