Testing -f rather then -d on file.