Wrap os.path functions in method calls
Wrap os.path functions in method calls

Some functions from os.path are now references to C functions (e.g. isdir on Windows). This breaks the path module, because compiled functions do not get bound to an object instance. All os.path functions have been wrapped in method calls, out of general caution.

Closes gh-737

ipython/ipython,ipython/ipython