You could mount the master cylinder on the firewall if you wanted. You could pretty much mount it anywhere so long as you can make the linkage work from the pedal to the master cylinder work.
Youll want to look for a master cylinder that has the same size piston in it as does your truck. So if yours is 1 1/4" then look for a later model with 1 1/4".