fix to wrong path on the is_writable check