fixed path extraction for git tree browsing with RAILS_RELATIVE_URL_ROOT