using try/catch to catch the error if BUILD_CONFIG does not exist