Added change directory logic to package configuration.