fixes issues with local mode deployments on ubuntu