[fix] Fix joining paths
[fix] Fix joining paths

- also use os.sep for file path
- also fix the module name removing ".\"

Change-Id: I754c0316b7f064a3cdb3fe9232a72c541b77ab97

wikimedia/pywikibot-core,wikimedia/pywikibot-core,PersianWikipedia/pywikibot-core