Fixed issue where folder permission is correct still resolve to ftp publishing

Signed-off-by: crynobone <crynobone@gmail.com>
Merge branch '2.0'

Conflicts:
	tests/EnvironmentTest.php

Signed-off-by: crynobone <crynobone@gmail.com>