Bug fix for basename location option