configure: improve the Linux check

All the check has to do is to check if 'linux' is included in the
target_os variable and not to check for a specific value.