Fix redirection for installations with custom root path, refs #58