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

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