Check configured static_dir and fall back to default if non-existing

Make sure the 'static_dir' actually exists and has an index.html file inside it before using it. If the tests fail, fall back to using the default.

Signed-off-by: Lasse Bigum <lasse@bigum.org>