Detect OS and call specific target.