Add a dynamic environments script and update the documentation for github