Improved so that all arguments after <iter> and <dir> is eval'd as the command.