Tests if cork exists in a way that's not a bashism