Recognise dir as a path option in build profiles