Update cppmagic.py

Changed relative paths to absolute path for robustness.