Use internalURL endpoint for commands during the chef run

Also do not use non-existing options on Ubuntu (due to old package).