Deal with inheritance from parent directory when setting Windows