Improved sys.path fix code.