Enforces a nodejs script to run with the entry points path as the cwd