Bugfixes in setup script for 4_2 version