Merge only_www_touched change from validate.py

Do not build/check all books if only www/ is changed, instead
abort early.
This is a merge of a change only done for validate.py.

Change-Id: If81ee7c89c79e6571e2deebd98f6f596260d56c7
Merge "Merge only_www_touched change from validate.py"