Fix platform detection for Slackware (and possibly others)