Add a function for lazy chdir.
Use the client's current path when compiling stuff.