Fix calculation of the modification count.

The check in question would always fail, as the returned 'wc -l' result
contained whitespace, breaking the comparison against '0'.

Issue: PLCR-508