dir now accepts an optional path