Fix BaseURL

Previously QuickTalk wasn't compatible with installations in subdirectories.
A commit by marco_a partly fixed that but that introduced bugs with
installations on TLDs. This commit fixes everything.