Added hh configuration (if it's installed). Replaced call to basename with ${var##*/}, since it's much quicker.