do not run chmod if there are no files to chmod, prevents crash