Test for api directory before installing it.