Fixing exit command in stop case, and trying to make install location mo...

...re flexible (adapted back from init script now in aprox launcher, which was adapted from here originally).