contrib/sort_downloads: fix replace_tilde

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
contrib/sort_downloads: fix hack of BM_Pattern

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>