Fixes basepath resolution

Instead of using __dirname for path resolution (which points to the root dir of the module), uses process.cwd() in order to resolve paths from the gulp execution standpoint as it should be expected.