REQUEST_URI issue fixed for commandline apps