Update index.php

Changed redirect from relative path to lookup path. Script should work even from repo directory now.