more robust augeas script