accommodate long path names, fixes #243