Bugfix: Use dpkg instead of apt, ensure that elasticsearch starts before curl