mod/os: added multiple methods to catch distros that differ