Only load File::Basename when needed