for the love of...
The r function to check if a directory is writeable
is returning false negatives on the CSU network.

Commented out this line to make things work.