merged os paths a little more pythonically