Seems like the latter part of this is just duplicating `which`. Why not just use `which` instead of this method? If the `bin_path` is necessary, just use `which` inside this method rather than copying it over.