correct basename to work properly on linux with xargs