Fix download permissions (#1872)