fix detecting user in unicorn init.d script, improve error reporting