Determine yasnippet directory path in the correct load context

See #355