Change input of mapping to also handle process substitution