Add another directory traversal condition check

This one seems to work on Windows, too.