Workaround for servers that do not use cdir and pdir