Fix binary downloading bugs in Passenger Standalone
Refactor Passenger Standalone: split runtime lookup code to a dedicated class and add tests for it