mess with setting basename to work around mysterious Centos behaviour