Fix logic errors around opening an existing filesystem