Fix tests to avoid File::Temp errors

  Was getting "cannot remove path when cwd is ..."
  Ensure original cwd is restored before cleanup
Add blank lines for PkgVersion
Don't use MooseX::AttributeShortcuts (RT#100498)

  We weren't actually using any of its features anyway.
v2.026

 - don't "use MooseX::AttributeShortcuts" (wasn't actually using its features)
   (christopher madsen, suggested by karen etheridge - rt#100498)