Better YASnippet resolution of directories.