#127 wp_check_filetype is in WP since 2.x; we can probably rely on it

@mturalenka ok?