[bash] Getting an "ambiguous redirect" error