if fs is not available, return instead of trying to write to it

- fs write fix