filing /tmp/foobar should not file with absolute path (/tmp/foobar) but basename (foobar)