Move bash checks further up.