Removes /app.cgi from link URLs.
Explicitly uses bash.