Fixes #654 (it's a workaround actually)
Uses file extensions currently to detect the situation.
Also fixes the file save logic so that if the file extensions exists, default to it instead. If not, use .bin as before.
Supersedes !588