Fixed #99

The resource_name(file_path) use the posixpath.split to split the parent dir and the filename. However, it doesn't seem to work on the "windows" path.
For instance, if I have the file_path: C:\tmp\test.ABOUT, the result of the
left, right = posixpath.split(file_path)

is

['','C:\tmp\test.ABOUT']

meaning it treat the whole "windows" path as the filename and thus give the invalid filename character.

A simple fix would be use the os.path.basename instead of the posixpath.split.
Remove the '\\' from the test sample as this the '\' in windows is not an invalid character but a path separator.

In addition, since no system can have the character '\' as in the filename, it'll be safe to remove this from the test case.
update test cases for windows compatibility
The previous implement will cause "Permission denied" for Windows system as try to open a already opened file.

Update the code to use another method to create a tmp file, but this method need to add code to close and remove the file with:
os.close()
os.remove()