Run buildscript with system() instead of open().