1. Fix warnings of BuildDir() <--> VariantDir()
2. Add execute privilege for script