Fixed scripts to allow build