Added option to use relativeBase, for subdirectory support.

My documents are organized in `/posts`, `/projects`, etc. I wanted the associated files to follow the same structure.

Added an option `useRelativeBase` that tells the plugin to use `relativeBase`, instead of `basename`.