Further optimize the case where there is nothing to do.
Even when there were no changes, we were stat'ing every mountpoint. Now we wait til after we have determined that something has changed before we test the mountpoints. Also, just open and append to files directly in perl rather than exec'ing a "cat" to do it.
Showing with 104 additions and 64 deletions