fixed file output as I was using file_exists but then using is_writeable which is never true if the file doesn't exist.
fixed file output as I was using file_exists but then using is_writeable which is never true if the file doesn't exist.

bretticus/bseed