Fix new get_relative_dir code translation issue