Running via lib to yardstick instead of shelling out.

Will now also run when file is saved.