fix creating wrappers link with alias, fix #2228
improve quoting and detecting handling root in unicorn init.d script
reworked db operations, fix #2229