Improve release script

 * use nice set for error checks
 * improve arguments checks
 * set trap for error
 * remove temp files on error