Used paths functions instead of the missing sys functions.
Merge pull request #6 from fidlej/topic_paths

Used paths functions instead of the missing sys functions