Use filepath.Base() instead of path.Base() to provide cross-platform functionality