Add precondition to chmod +x