Update build.sh

Fix permissions on emulator