Fix settings directory creation