Checks for SYSNATIVE folder presence

Checks for sysnative folder presence instead of the Powershell
subdirectory.

Adds some minor refactory as well.