Better working on Folder operations

The system command returns the return from the shell
So we can capture it and compare to Zero.

Need check for working with Windows OS
Add suport for pwd command