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
Signed-off-by: neo2shyalien <neo2shyalien@gmail.com>
Merge pull request #12 from Neo2SHYAlien/master

bug fixes