Directory check and reverted is_writable check.