Fix a programs bug if custom program folder is not exist.