Fixed a bug in the R_HOME variable export and some more logs