check for platform support before calling 'wp media import' too