Removes secret key base from public file into env variable.