normalizes the directive paths