Fix to Issue #395: Preview feature absent when .!qB extensions added

Previous code failed to detect .!qB files for preview. The function related to extract the extension from a filename was fixed.