Use `fs.stat` instead of `fs.syncStat` to handle errors

We must use async version of `fs` methods to handle gently the execeptions.

This should fix issue https://github.com/saschagehlich/autocomplete-paths/issues/1