Fix local deploy logic error

Was rejecting all hostnames, instead of only ones that were not
localhost.