Add trash dir to basedir. Fix percona-agent/main.go.