Support for three OS according to file extensions (see #3).