fix script.canRead() check in DartMojo