Fix building of URLs to pages or scripts in the same directory