target_realpath
if (target_realpath("/emul/aout", prefix) != NULL && stat(prefix, &st) == 0)
if (target_realpath("/emul", prefix) == NULL || stat(prefix, &st) < 0) {
static char *target_realpath(const char *, char *);