basename portability 'fix'.