create refs parent directory, if necessary