Fix detection of platform specific reference files
The platform specific part of the reference file extension was misinterpreted if it contained only one field (platform, os, optimization, etc.).
This MR fixes the problem by allowing only one convention for the platform string.
Closes #236 (closed)