Backport the relevant part of: https://github.com/Nyr/openvpn-install/commit/d7173537692df686afa26e74c456aede8bc569f3