Fix prompt check logic.
Fix download function for Darwin/OSX.