Making longitudinal_plots linux compatible (had problems with removing
temp folder).