Fixed php5.4 specific problem with downloading extensions (by campbell-prince)
http://devel.frontaccounting.com/git/?p=fa-stable.git;a=commit;h=edd2754dc10ac74cfcce991520ad9f9dac8b1905