The same logic block to resolve possible symlinks exists in 5 different places now. This change moves this duplicated code to a static member function of WX_FILENAME instead.