Check that 3.1 files do not have a php closing tag

Fix #1