Added check for cli-server

I think if you are using php server, this is local machine, and must return local environment