Raise warnings in ext/std/file functions [closes #3635, closes #2999]