Use dir_exists function instead of ant_exists facter