Fixes in appserver init script