Do not strip trailing slash from the root path under nginx.

The nginx config rule for stripping trailing slashes currently causes a 301 redirect to a blank location when requesting the root resource (`/`). This commit fixes that by only stripping slashes that have 1 or more preceeding characters.