Fix the @@excluded_environments init

This commit is based on efforts made by tubaxenor to fix this error. Thank you.