Make create-dir work with older versions of Pegasus