make --working-dir path absolute
Util.dirname("") must return "."
make a temporary file for --run / --test on the same directory as the
JSX source file

That's because NodeJS adds the script directory to library search paths.