Update debug messages and POSIX compliance in Entertainment and Government scripts