Fixed multiple references to $_SERVER vars

Fixes #399
Refs #398