More tinkering with the Wordpress build script to get paths etc correct.