fixed bug: exception was thrown when the main bundle or it's binary could not be found
-> sanity checks added to better handle these cases