Update class.osticket.php

Modified get_path_info to work on servers which doen't have PATH_INFO set, NGINX in my case.