bug fixes

1. Create sumlink if only doesn't exist.
2. Extract content from gzip instead of bzip file
3. Create directories if ontly doesn't exist.
4. Sed escaping - sometimes the generate random password string contains
slash (/) which breaks sed
5. Added cmake to apt packages. CMake is required to build Rugged