Add better support for excluding and including branches and initialization commands