Improve check for running openrc. Fix shebangs