Renamed AddCommand() to AddToCommand() in modules/alias.cpp to circumvent
compiler bug affecting gcc 4.3 and older which caused compilation to fail

Refactored some difficult-to-read code in modules/alias.cpp