Renamed tmp shm param.
Setting file permissions is not needed anymore.
Simplified checking of kernel params and swap space.