Update ftp.php

update dir_exists function