Steve, the os commands don't run through zope, it denies access to them to be run at all through the webserver. So in turn, I had to use a work around to fix the IE problem. Also qwwee's suggestion to use:
filepath.split('\\')[-1] works well too. Zope is very finicky about running specific commands, I'm sure this is due to security issues of running os commands through a website/webserver. -- http://mail.python.org/mailman/listinfo/python-list