less restriction to open pgm3D

small PR just to extend the reading of variant of pgm3d as used by other people