Change the if condition in exports module

it prevent the error in first time installation and prevent the global style to be imported more than once