Fail on whitespace at end of lines

This will prevent the whitespace from propagating into the docs links to the dockerfiles.
Why not just `gitDir=` like we do elsewhere in this script?