PowerShell 2.0 compatibility fix for our profile script

The $PSScriptRoot variable only works in scripts since PoSh v3.0; while it
was introduced in v2.0 it only works in modules and so we can't use it.
Clean-up PowerShell profile variables after usage