Minor optimisation to path constructor