Change links to $CODE_PATH where possible