Fix print vs printf statement. Add sleep before reduce.
Ignore output of popd.
Make the current_pges function more robust by looking for not FINISHED RatAuditTasks.