Use GetExecutingAssembly() instead of Environment.CurrentDirectory

Closes #907