[env] Fix issue in tgz and source trailing '/'