Fix #5937 by removing dependency on which

Ok, I think I finally cleaned out my julia repo so this should be clean