Fix external source files reference with "code" pattern in project.json

- Reference external source files with forward slashes on Windows works now
- Reference external source files with backslashes on Mono works now

parent #559 

It also doesn't work if you use backslashes in `code` pattern on Mono to reference source files outside project root. This PR fix the problem at the same time.