Added support for relative root paths

I've added the option to use relative root paths. I needed this functionality because a test environment of a website i'm working on resides in a sub-folder on the server http://example.com/test/ and this script was only generating absolute paths to the root.

You can check it out using: 

    options: {
         use_relative_root: true
    },

Let me know what you think.