add support for creating kernel core directory while starting the instance

The issue is related to the one opened in cf-release project.
https://github.com/cloudfoundry/cf-release/pull/400

The aim for the changes is to create the configured kernel core directory, currently, it was only created in the application starting phase, not considered of the staging phase.