Remove unused cwd stuff, add a bunch more functions, try and emulate fd versions of functions with a call that gets the path for an fd and then calls the path version, some general cleanups, now adds the module path internally instead of requiring the user to alter the environment.
Move the logging from printf to DEBUG macro. Change the internal fault to EFAULT which should be a little easier to track.