Provide an error message if directory is not writable
Ensure missing() is given a file name
Use print() instead of echo() for consistency