Fix compilemessages script