discover/paths: Fix wget command with https and !DEBUG