Do not enumerate non-existent folder when publishing package version
Prevent duplicate windows from becoming visible, mentioned in #391