Update cppmagic.py

Changed relative paths to absolute path for robustness.
Merge pull request #2 from gazzza/patch-1

Update cppmagic.py and close #1.