create fake fopen function for shell test