relpath function for compatibility with python <v2.6

script originally used os.path.relpath, but that was introduced in
python 2.6, so anyone who is using an earlier version of python was
getting an error trying to create a project etc.