windows: Fix folders sometimes not opening. Closes #1441