bin/firefox: check for the target directories instead of for derivations.

So interrupted installations can continue automatically.