Use a tighter regex pattern to avoid conflicts with RequireJS

Fixes #6
Add support for relative includes (again with refined regex).
Added missing test files
merge fix by cwacek to work with other plugins, like browserify