changing mock implementation from alias'es to shell functions