Use the file's base path instead of current working directory. Added prefix option to support old behaviour.

I've changed the ZIP to be populated using the file's base path allowing for flattening of directories. Also added a prefix option to support the old behaviour.

Probably could do with a test or something.