1. oozie logs can be robustly searched in directories
2. simplified code