Using more portable path creation logic