Run buildstatic.sh only when files with defined extensions change.

Fixes #38