Enhances alias replacement so aliases can be used anywhere in the command