service.sh: change dir before killing processes