Removed some references to kernel32.dll and change a check on testing to work with current pipe implementation.
Better working current dir and absolute path.
Reenabled net api calls.