Considering SCRIPT_NAME rack variable while calculating host url