Re-did config file path handling using directory-push/directory-pop for consistent relative path handling