Added to keep_fds functionality

 * added optional close_fds parameters
 * keep_fds and close_fds now can be overloaded with string paths.