Parse class files more reliably