More tweaks to directory handling. Removed writable parent check from index.