Fix errors for file objects

The readme says the browserify.files array can contain strings or objects with pattern, but it doesn't work.

Resolving paths the same way as strings, and make sure the files sent to watcher is always a string.