Fix bugs in release script

* remove space between flag and value for sed command.
* untrap signals