use path.join to concatenate base & filename

If you don't do this, then the plugin breaks when there is no trailing '/' in file.base.