Merge branch 'master' into develop
Replace os.getresuid() so it works on Mac OS X.
Fix path creation.
Fix gpg binary path validation.
Fix validation of --verify argument using detached sig.