Makes Bitwasp compatible with read-only filesystems

Some small changes to get rid of permission issues.