comment cleanup
Use path.js to do relative directory stuff.

path.js is a port of python's os.path, or more precisely, it uses
os.path as a reference to ensure that we get things right.
Configure copy plugin's path determining method.