Fix optionality of "architecture" in gas mode

Currently, using gas mode without specifying an architecture causes
an error. Fix by checking if "architecture" actually exists.