avoid basename if build static