Adapted scripts to mono 3.4