Fix binary returned instead of path