Fixes #5. Implemented redirection of stin and stdout for new process.