fix picking required version if it's available, clean up in tweak.py module

fix for #1062 reported by @ sylmarien
no, I'd like to also have a debug message when no files were found that match that pattern, so there's no reason for an if/else imho