Determine the default file extension from user-defined specifications in app manifest
Corrected GetExecutingAssembly method to work when invoked from other assembly.