Fix bug caused by empty path var.
Merge pull request #3 from docmeth02/fixes

Fix bug caused by empty path var.