Hi Chris,
The urls will work if you use the core methods. Look in my themes for ideas on how to cope with $CFG->themedir and $CFG->dirroot as they are two separate things and the code needs to deal with them at the same time. You could always have a local test server that would allow you to test this.
G