Fixed wrong order of writable folders checks