common: fix check for big endian arches

Fix for: https://bugzilla.redhat.com/show_bug.cgi?id=905411