Updated to 1.0.4-1.

Does not execute code if there is no valid mainBundle (thanks to
sbingner for the assistance)