improved arch packages detection, fix #1770