Expand shell functions in map expressions

@stolen