fix bug where it was not replacing correctly for multipart
* make sure we respect excluded path as well
Merge pull request #1 from taskrabbit/multipart-bug

fix bug where it was not replacing correctly for multipart