Fix #111.

When comparing targets, check if the target is a standard target.
Merge pull request #114 from ldx/issue111

Fix #111.