Depends: fix handling of empty values with ~=