Now knows where it is launched from, allowing it to correctly load resources.