Don't use buffer-file-name when locating yasnippets dir

Closes #364