Fix issue with path starting with dotfile