Adding in checks to see if files/directories exist before creating them to help prevent errors from trying to recreate them.