centos init script: using ls instead of find, minor refactoring