Set the message data with the results of is_file and is_dir

Commands should operate on the data as much as possible. This means
that subsequent commands won't have to check for the results in pipeline_data.
It should also make it easier to predict a pipeline.