Fix file existence check on hadoop 1.0.4

Hadoop fs -test works great on hadoop 1.0.4.
We experienced some problemes using hadoop fs -ls -d instead.