Fix for setting $config.moduleScope to "global"

This is related to my comment (https://github.com/psake/psake/pull/42#issuecomment-16796150) to pull request #42 and fixes it.