Fix trailing slash issue when checking isShared.

Closes #8.
Also progress on renaming buffers.