Check for read-only filesystem in Chmod