Fix check for bin path