Added python provided directory seperators (os.sep) so that the script works on Windows.