moved build sciprt for documents into Poseidon environment