Shouldn't `filesystem` be some kind of constant? Seems dangerous to trust on it like this.