Fixes after migration to Aquamacs 3.1a, fixes for navigation by tags in ruby and perl mode