Restore trigger freshness check
This reverts commit db19323db2cf43727061f9433216b215cf314984.
Paths are adjusted. The condition is inverted to actually check the
right thing.
The test is moved before build to make it easier to see. Meson does
the .in substitutions immediately after configuration, so this should
be easier to see.