fix api basepath in settings

The api path was set to a path that might not always be correct