Fixing directory paths