common: win32 ignore getpwuid, getgrgid, getpwuid

On win32, just ignore the syscall that are Unix perms related.
tests: use Cwd module instead of PWD

Win32 doesnt know about PWD, but Perl already abstracted it away in
Cmd.
gitignore win32 generated files