Use basename only when setting program name