Fix bug in release script - strip trailing comments