Handle long paths in jay
Merge pull request #1207 from nlhepler/master

Fix buffer overflow for long paths in jay