Merge pull request #1955 from paolo-sz/master

Correctly detect python in PATH
Forces windows shutdown to wait qBittorrent to terminate cleanly
This is only valid for Qt >= 5.0 and Windows >= Vista
Merge remote-tracking branch 'upstream/master'