extended start script clean up and fixes for install/upgrade
use long hostname if no hostname given
add unpack option to install escript
sort apps by version, so newest is chosen if it passes constraints