SConstruct: Two tweaks

1. Let files() ignore entries of the form a/b.
2. Don't build latex if we don't have latex.
python/numpy: Check that numpy has been imported before use