check if the system supports exec for getting locales