This is needed to avoid the ubuntu script crashing on aws when installing java