Improve update-script

Removed unneeded comments, work with use and closure, improve
regexprs to allow multiple space.