Fix #1090: Build script generates exception templates with non .php extension