fix submit with relative path name

Fixes issue #6