Fixes #1160 - mark styledir as optional