Add better handling of relative paths for default URLs (issue #8)