Fix styleDir variable bad location, add sharedDir