set dist path depending on the environment