Fix redirect to work with subdirectory installs