Added detection of missing classes directory