automatic OS detection for linux variants