Basic file checks, overwriting