Fix checking for port numbers specified via hiera