Fixed the file upload tests on windows

Some drivers are expecting the path to the file to use the right directory
separator, unlike PHP which accepts / on all platforms.
Applying realpath on the path will normalize this on Windows.
Merge pull request #543 from stof/fix_windows

Fixed the file upload tests on windows