[PATCH 4/4] specified "-type f" for permissions check