fix: Change the use of exist() for dir()
exist(fu) doesn't seems to accept fu beeing a regexp, but dir(fu) does.