fix sed substitution so that spaces in configuration variables are handled correctly
rebuild apt cache so that libssl heartbleed vulnerability is patched