Improve rcfs flag detection.

Work out the permissions from the flags. drwxrwsrwx.
Improve the list command to show a standard 'ls' output.
Clean up of tabs converted to spaces.
Minor fixes.