Corrected global checking.
Converted to boxen::env_script.