Fallback to the passed path if realpath() fails in duc_dir_open