diff --git a/bin/react-scripts.js b/bin/react-scripts.js
index 3f924225ae34d2c8377290931502a324474abfe4..355d49f16f0fda03d6a7a835685a8df1373549a9 100644
--- a/bin/react-scripts.js
+++ b/bin/react-scripts.js
@@ -1,5 +1,4 @@
 #!/usr/bin/env node
-var path = require('path');
 var spawn = require('cross-spawn');
 var script = process.argv[2];
 var args = process.argv.slice(3);
@@ -10,7 +9,7 @@ case 'start':
 case 'eject':
   spawn(
     'node',
-    [path.resolve(__dirname, '..', 'scripts', script)].concat(args),
+    [require.resolve('../scripts/' + script)].concat(args),
     {stdio: 'inherit'}
   );
   break;