Fixed issues with Build.sh and SDK.sh