drive_dirs: is_system flag and system_count counter; fixed dir_count when removing dir