Use namespace in constant check for API_BASE.

Fixes #24