Calculate paths using path.join