Make jh_openCubeRange platform-independent

Cubes can now be opened in Linux and OS X without path errors