Revert _searchPossibleTargets optimization. Closes #1188
Build dist