Added directory check for config/core directory.