Improve error handling a bit

Ie. don't write new current_buildset file etc when build_action has
marked an error. Failed execution of script is not marked as an error

Also make it possible to specify dirs with a tailing /

and output some usefull information about what script is being executed,
since there is alot less output now that stdout is being redirected to a
file