Add support for %{shortfile} and %{longfile}.