Made array membership checks faster
Ensure zdirs exists on startup
Merge branch 'feature/stability' into dev