check if the platform is really the same, don't just take the existence of the directory for sufficient