killpay: improve current URL detection

Port @kares' patch to killpay.

See 106d8aa54e8435df75fba490bf9e1fca1564b4da.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>