fixed bug left from API3 port
updated build.sh; increments cache version