Fix #4019, fix NameError peer and disconnect in check
Land #4031, fixes for pureftpd_bash_env_exec