Added check for ls error when there are no post-processing scripts