language detection for UNIX