Barfs is the dirname does not exist, fixes #1