[PATCH 1/7] winapi: Use $cwd variable instead of pwd command.