Small fix for PowerShell 2.0 compatibility

Added @() operator so that foreach loop wouldn't execute once with $null in PowerShell 2.0