Make alpha arch detection more lenient. Taken from the Debian patchset.