Fixed debug-output, implemented use of `cwd` for pylint-check

Fixed debug-output (which wasn't working properly) to show now (if existing) the errorcode, stderr and stdout.

Implemented the use of the current working directory to the pre-activation check, to meet the same setting as the later linter-execution.