generic init script: removed bashisms; using ls instead of find