Fixed issue with running this module when _SERVER REQUEST_URI was not set, for example via CLI