better getSrcURL fidelity, taking into account query string option and trailing slash for folder-based (no dot) urls.