Always chdir into ij_dir on Mac OS X

See issue #17