correctly detect wether we should run postgres initdb