Add more interrupt guards in filesystem code

Closes #91