Core pattern needs to set and /var/crashes need to be created for ubuntu as well

During recent refactor of the code the setting core pattern  and creating /var/crashes
dir was indented inside the centos/rdhat if condition, Fixed it by unindenting and
mking it getting executed for all platform.

Change-Id: I8ca68f5fc4bf1575e652462145db8d3d2a61d870