Fix redirects to work with subdirectory installations of pico

This should fix a little problem I had. When pico is not installed in the base directory of the server "/", the redirect functions redirect_home() and redirect_login() break the site.