improve quoting and detecting handling root in unicorn init.d script