minor changes
resolve basename conflict with windows server

the combination of an osx-client with a windows server resulted in wrong
filenames when 'save' is enabled on the client

filename was absolute windows path (C:\...) and therefore the files
weren't stored properly in the client's save directory

replacing path.basename with a custom basename regex seems to resolve
this issue