some bug fix, reorder function prototype in ras.cpp

bug fix
1. dynamic alloc string size should be strlen + 1
2. checking existence of argument before pipe
3. pipe_manager
   - get_pipe should resize vector if pipe doesn't exist
   - create_pipe should set fd_is_closed to false;
modify error output API: use perror() instead of fprintf()+strerror()