Setup: Made reference number conversion dependent to the reference formatter.

The actual implementation works only for numbers in the `grouped_by_three`
format. With this easy check it's possible to support both formats in the
repository setup...
Merge pull request #345 from 4teamwork/pg_path_from_reference_fix

Setup: Made reference number conversion dependent to the reference formatter.