Fixed bug on Linux that caused the core to fail when output files with the same chunk dimension as dataset dimesion got written.