utilize path module

`path` has a lot of niceties built in for transforming file paths, which make for easier to read code and reduces worry about paths on certain OS's.