Add a PREFIX detector to ComplxApp.cpp

Needs testing; upon success, the function needs to be moved elsewhere
and its prototype copied into a header file, so that ComplxFrame can use it.