Merge pull request #1 from xsacha/master

Dump functionality
Merge pull request #2 from xsacha/master

Create directories in dump mode
fix for buffer overflow
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.