[utils] functions to check if file/symlink/dir exists