Fixed a bug where the file system was ro before creating profile and shells file.