get_arch() properly returns arch or unknown, fixed require.rpm.repository to conver arch to str, refactored --enablerepo thanks to Ronan Amicel in require.rpm.install