Implement --public-subdir option.