recipes/ubuntu: Fixed the checking of Architecture

http://stackoverflow.com/a/106416/1284255