Fix on isIdentical() - Now Resolves to the type decl and also check the for directory