dateutils: move of dateutil version detection

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
WebSearch: regression tests fix

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>