Override of fork and fopen functions