Windows compatibility fixes

Various fixes to deal with Windows compatibility - primarily making increased use of os.path.sep but also using python's built in tar functionality.

Ogsy