Cleaner handling of :listen port configuration.