Used os.path.join

Replaced some unpleasant path concatenations with os.path.join().