Fix list program

Resolving path twice results in directories not being
found
Merge pull request #4 from ElvishJerricco/bugfix/list

Fix list program